package day7;

public class Aircraft extends Plane {
    //座位数，自重，飞行高度
    int site, people;
    double weight, height;

    public Aircraft(int site, int people, double weight, double height) {
        this.site = site;
        this.people = people;
        this.weight = weight;
        this.height = height;
    }

    public void information() {
        System.out.println("客机有" + getSite() + "个座位，自重" + getWeight() + "t，飞行高度" + getHeight() + "km，载客数" + getPeople());
    }

    public int getSite() {
        return site;
    }

    public void setSite(int site) {
        this.site = site;
    }

    public int getPeople() {
        return people;
    }

    public void setPeople(int people) {
        this.people = people;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(double height) {
        this.height = height;
    }
}